package com.yhm.testSpringMvc.ACM;

import java.util.Scanner;

public class Main3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//      int n = sc.nextInt();
//      while(n-->0){
        while (true) {

            int a = sc.nextInt();
            int b = sc.nextInt();
            if ((a == 0) && (b == 0)) {
                break;
            }



            System.out.println(a + b);
        }
//      }
    }

}